package com.example;

import com.example.vo.User;

import java.lang.reflect.Field;

/**
 * @ClassName: leetcode
 * @Description:
 * @Author: csp
 * @Date:
 */
public class ReflectTest {
    public static void main(String[] args) {
        User user = new User();
        user.setUsername("123");
        user.setAge(18);
        Field[] fields = User.class.getDeclaredFields();
        System.out.println(fields);
        //输出sql
    }
}
